package lan.battletank.activity;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;

public class BaseActivity extends Activity {

	/** Option Menu Finish */
	protected static final int MENU_ID_FINISH = (Menu.FIRST + 1);

	/** Option Menu Pause */
	protected static final int MENU_ID_PAUSE = (Menu.FIRST + 2);

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public void setContentView(int layoutResID) {
		super.setContentView(layoutResID);
	}


	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		// End
		case MENU_ID_FINISH:
			finish();
			break;
		// Pause
		case MENU_ID_PAUSE:
			break;
		default:
			break;
		}
		return super.onOptionsItemSelected(item);
	}
}
